package Exe1_2;

import java.util.GregorianCalendar;
import java.util.Scanner;


public class Data {

	private GregorianCalendar data;
	private Scanner sc1;
	

	public Data() {
		super();
	}

	public GregorianCalendar getData() {
		return data;
	}

	public void setData(GregorianCalendar data) {
		this.data = data;
	}
	
	public String imprime() {
		return "Data [data=" + data.getTime() + "]";
	}
	
	public void preencherData(){
		System.out.println("\nDATA");
		System.out.println("Dia :");
		sc1 = new Scanner(System.in);
		int aux = sc1.nextInt();
		
		System.out.println("Mes: ");
		sc1 = new Scanner(System.in);
		int aux1 = sc1.nextInt();
		
		
		System.out.println("Ano: ");
		sc1 = new Scanner(System.in);
		int aux2 = sc1.nextInt();
		
		data = new GregorianCalendar(aux2, aux1, aux);
	}
}
